﻿@model IEnumerable<Model.Mconfig_major>

@{
    ViewData["Title"] = "major";
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-trasitional.dtd">
<html>
<head>

    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link href="~/css/table.css" rel="stylesheet" />        
    <script type="text/javascript" src="../../javascript/jquery-1.7.2.js"></script>

    <script type="text/javascript">
        function doDeleteMajor(id) {
            $.ajax({

                url: "/HR_Fist/customiz/customizAction!doDeleteConfigMajor",
                data: "cm.makId=" + id,
                dataType: "text",
                success: function () {
                    alert("删除成功！");
                    location.reload();
                },
                type: "post"
            });
        }
    </script>
</head>

<body>
    <form method="get" action="">
        <table width="100%">
            <tr>
                <td>
                    <font color="black">
                        您正在做的业务是：人力资源--客户化设置--人力资源档案管理设置--职位设置
                    </font>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <button asp-controller="client" asp-action="major_add">新增</button>
                </td>
            </tr>
        </table>
        <table width="100%" border="1" cellpadding=0 cellspacing=1
               bordercolorlight=#848284 bordercolordark=#eeeeee
               class="TABLE_STYLE1">
            <tr>
                <td width="22%" class="TD_STYLE1">
                    职位分类编号
                </td>
                <td width="23%" class="TD_STYLE1">
                    职位分类名称
                </td>
                <td width="26%" class="TD_STYLE1">
                    职位编号
                </td>
                <td width="24%" class="TD_STYLE1">
                    职位名称
                </td>
                <td width="5%" class="TD_STYLE1">
                    删除
                </td>
            </tr>
            @foreach (var item in Model)
            {
                <tr>
                    <td>
                        @Html.DisplayFor(modelItem => item.major_kind_id)
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.major_kind_name)
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.major_id)
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.major_name)
                    </td>
                    <td>
                        <a  asp-action="Del" asp-route-Id="@item.mak_id" onclick="return confirm('确认？')">删除</a>
                    </td>
                </tr>
            }


        </table>
        <p>

    </form>
</body>
</html>

